import { _decorator, Component, Node, NodeEventType } from 'cc';
const { ccclass, property } = _decorator;

@ccclass('NewComponent')
export class NewComponent extends Component {
    start() {
        this.node.on(NodeEventType.TOUCH_START,()=>{
            this.node.getChildByName('Sprite调色').active = !this.node.getChildByName('Sprite调色').active;
        },this);
    }

    update(deltaTime: number) {
        
    }
}


